package com.example.mapper;

import com.example.model.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentChooseCourseMapper {
    void studentChooseCourse(@Param("courseId") String courseId,
                             @Param("student_num") String student_num);

    void studentDeleteCourse(@Param("courseId") String add_course_num);
//    查询学生加入的所有课程信息
    List<Course> allCourse(@Param(value = "number")String number);
//    查询课程是否存在
    Course isExitCourse(@Param(value = "courseId")String courseId);
//    查询是否已经加入课程
    int alreadyExit(@Param(value = "courseId")String courseId,@Param(value = "number")String number);
}
